<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/***
 *
 *       =======================================================================
 *                             Jack：活动用户端接口 接口V1.0
 *
 *                                 作者：沈富贵
 *
 *                             更新时间：2018-12-30
 *
 *       =======================================================================
 */

\think\Route::rule([
    'minip/user/login' => 'index/User/login',                     // 小程序登录
    'minip/user/phone' => 'index/User/getUserPhone',              // 获取用户手机号
    'minip/user/pay' => 'index/Pay/wxPay',                        // 支付
]);


\think\Route::rule([
    'minip/user/isticket' => 'index/User/isGrabTicket',              // 用户是否拥有抢券资格
    'minip/ticket/grab' => 'index/User/grabTicket',                  // 用户是否可以抢券
    'minip/ticket/list' => 'index/User/ticketList',                  // 用户查看自己的抵价券列表
    'minip/ticket/detail' => 'index/User/ticketDetail',              // 抵价券详情接口
    'minip/active/config' => 'index/User/activeConfig',              // 活动配置信息
    'minip/recode/data' => 'index/User/recodeString',                // 中奖记录,
    'minip/user/location' => 'index/User/getUserLocation',                // 中奖记录


]);


\think\Route::rule([
    'minip/user/area' => 'index/User/areaSeller',                       // 用户经销商端区域列表
    'minip/user/info' => 'index/User/userInfoByUid',                    // 传用户ID获取用户信息接口
    'minip/user/prize' => 'index/TestPay/drawPrize',                      // 用户抽奖接口
]);


\think\Route::rule([
    'minip/user/testpay' => 'index/TestPay/wxPay',                       // 用户抽奖接口
    'minip/pay/callack' => 'index/TestPay/payNotify'
]);



/***
 *
 *       =======================================================================
 *                              Jack：活动经销商端 接口V1.0
 *
 *                                 作者：沈富贵
 *
 *                             更新时间：2018-12-28
 *
 *       =======================================================================
 */


\think\Route::rule([
    'minip/seller/sgin' => 'index/Seller/sgin',                             // 商户注册
    'minip/seller/sms' => 'index/Seller/sendSms',                           // 发短信验证码接口（注册）
    'minip/seller/sms2' => 'index/Seller/sendSms2',                         // 短信登录的验证码接口
    'minip/seller/login' => 'index/Seller/login',                           // 账号密码登录
    'minip/seller/smslogin' => 'index/Seller/smsLogin',                     // 短信登录
    'minip/seller/isticket' => 'index/Seller/isTicket',                     // 判断券是否合法
    'minip/seller/deviceList' => 'index/Seller/deviceList',                 // 读取设备列表
    'minip/seller/checkTicket' => 'index/Seller/checkTicket',               // 核销券接口
    'minip/ticket/info' => 'index/Seller/getTicketInfo',
    'minip/ticket/seller' => 'index/Seller/getMyCheckData'                  //核销记录接口
]);




/***
 *       =======================================================================
 *                              Jack：活动管理后台 接口V1.0
 *
 *                                 作者：沈富贵
 *
 *                             更新时间：2019-01-03
 *
 *       =======================================================================
 */



\think\Route::rule([
    'admin/account/login' => 'index/Account/login',
    'admin/active/info' => 'index/Account/getActiveInfo',
    'admin/active/settime' => 'index/Account/setActiveTime',
    'admin/active/init_prize' => 'index/Index/init_Prize',
    'admin/active/time' => 'index/Account/getActiveTimeInfo',
    'admin/user/list' => 'index/Account/userList',
    'admin/ticket/list' => 'index/Account/checkDataList',
    'admin/ticket/add' => 'index/Account/addTicket',
    'admin/prize/add' => 'index/Account/addPrizeData',

    'admin/git/webhook' => 'index/Account/webhook',  // 代码更新通知


    'admin/user/export' => 'index/Account/exportUserExcel',  // 用户信息导出Excel
    'admin/seller/export' => 'index/Account/exportSellerExcel',  // 用户信息导出Excel
    'admin/check/export' => 'index/Account/exportCheckExcel',  // 用户信息导出Excel
    'admin/recode/export' => 'index/Account/exportRecodeExcel',  // 用户信息导出Excel
    'admin/account/export' => 'index/Account/exportSellerAccountExcel',  // 用户信息导出Excel
    'admin/sellerInfo/list' => 'index/Account/sellerInfoList',
    'admin/sellerInfo/add' => 'index/Account/addSellerInfo',
    'admin/sellerInfo/edit' => 'index/Account/editSellerInfo',
    'admin/sellerInfo/get' => 'index/Account/getSellerInfo',
    'admin/sellerInfo/del' => 'index/Account/delSellerInfo',


    'admin/seller/list' => 'index/Account/sellerList',
    'admin/recode/list' => 'index/Account/recodeList',

]);